package com.clkj.xiuzheng.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;

/**
 * @author yawang
 */
@ApiModel( value ="t_cl_outStockItem" )
@Table( name ="t_cl_outStockItem" )
public class OutStockItem  implements Serializable {

    @Id
   	@Column(name = "item_id" ,updatable = false)
	@ApiModelProperty( value="null")
	private Integer itemId;

	/**
	 * 商品Id
	 */
   	@Column(name = "product_id" )
	@ApiModelProperty( value="商品Id")
	private Integer productId;

	/**
	 * 数量
	 */
   	@Column(name = "product_num" )
	@ApiModelProperty( value="数量")
	private Integer productNum;

	/**
	 * 单价
	 */
   	@Column(name = "product_price" )
	@ApiModelProperty( value="单价")
	private Double productPrice;

	/**
	 * 总价
	 */
   	@Column(name = "product_total" )
	@ApiModelProperty( value="总价")
	private Double productTotal;

	/**
	 * 销售出库或入库编号
	 */
   	@Column(name = "out_id" )
	@ApiModelProperty( value="销售出库或入库编号")
	private Integer outId;

	/**
	 * 0为采购入库，1未销售出库
	 */
   	@Column(name = "item_flag" )
	@ApiModelProperty( value="0为采购入库，1未销售出库")
	private Integer itemFlag;

   	@Column(name = "bar_code" )
	@ApiModelProperty( value="null")
	private String barCode;

   	@Column(name = "warehouse_id" )
	@ApiModelProperty( value="null")
	private Integer warehouseId;

   	@Column(name = "factory_id" )
	@ApiModelProperty( value="null")
	private Integer factoryId;

   	@Column(name = "company_id" )
	@ApiModelProperty( value="null")
	private Integer companyId;

   	@Column(name = "item_unit" )
	@ApiModelProperty( value="null")
	private String itemUnit;

    @Column(name = "item_date" )
    @ApiModelProperty( value="销售时间")
    private String itemDate;
    @Column(name = "product_date" )
    @ApiModelProperty( value="生产日期")
    private String productDate;

    @Column(name = "validity" )
    @ApiModelProperty( value="有效期")
    private String validity;


    @Transient
    private String productName;
    @Transient
    private String formatName;
    @Transient
    private String warehouseName;

    @Transient
    private String factoryName;


    @Transient
    private String productImg;
    public Integer getItemId() {
    return itemId;
  }

  public void setItemId(Integer itemId) {
    this.itemId = itemId;
  }


  public Integer getProductId() {
    return productId;
  }

  public void setProductId(Integer productId) {
    this.productId = productId;
  }


  public Integer getProductNum() {
    return productNum;
  }

  public void setProductNum(Integer productNum) {
    this.productNum = productNum;
  }


  public Double getProductPrice() {
    return productPrice;
  }

  public void setProductPrice(Double productPrice) {
    this.productPrice = productPrice;
  }


  public Double getProductTotal() {
    return productTotal;
  }

  public void setProductTotal(Double productTotal) {
    this.productTotal = productTotal;
  }


  public Integer getOutId() {
    return outId;
  }

  public void setOutId(Integer outId) {
    this.outId = outId;
  }


  public Integer getItemFlag() {
    return itemFlag;
  }

  public void setItemFlag(Integer itemFlag) {
    this.itemFlag = itemFlag;
  }


  public String getBarCode() {
    return barCode;
  }

  public void setBarCode(String barCode) {
    this.barCode = barCode;
  }


  public Integer getWarehouseId() {
    return warehouseId;
  }

  public void setWarehouseId(Integer warehouseId) {
    this.warehouseId = warehouseId;
  }


  public Integer getFactoryId() {
    return factoryId;
  }

  public void setFactoryId(Integer factoryId) {
    this.factoryId = factoryId;
  }


  public Integer getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Integer companyId) {
    this.companyId = companyId;
  }


  public String getItemUnit() {
    return itemUnit;
  }

  public void setItemUnit(String itemUnit) {
    this.itemUnit = itemUnit;
  }

    public String getItemDate() {
        return itemDate;
    }

    public void setItemDate(String itemDate) {
        this.itemDate = itemDate;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getFormatName() {
        return formatName;
    }

    public void setFormatName(String formatName) {
        this.formatName = formatName;
    }

    public String getProductImg() {
        return productImg;
    }

    public void setProductImg(String productImg) {
        this.productImg = productImg;
    }

    public String getWarehouseName() {
        return warehouseName;
    }

    public void setWarehouseName(String warehouseName) {
        this.warehouseName = warehouseName;
    }

    public String getProductSate() {
        return productDate;
    }

    public void setProductDate(String productDate) {
        this.productDate = productDate;
    }

    public String getValidity() {
        return validity;
    }

    public void setValidity(String validity) {
        this.validity = validity;
    }

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }
}
